﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Include/Admin.master" AutoEventWireup="true"
    CodeFile="Manage.aspx.cs" Inherits="Admin_ZHJBXXB_Manage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../Style/Common/DatePage.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true" ID="ScriptManager1" />
    <table cellspacing="0" cellpadding="0" style="width: 100%; height: 30px; padding-bottom: 5px;
        border: 1px; border-color: #66CCFF;">
        <tr style="background-image: url('../../images/管理员页面/title_bg1.jpg'); background-repeat: repeat-x;">
            <td style="font-weight: bold; font-size: large; font-family: 仿宋;">
                <strong>【账户基本信息管理】</strong>
            </td>
        </tr>
    </table>
    <table class="editTable" cellspacing="1">
        <tr>
            <th>
                所属用户
            </th>
            <td>
                <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
                <img alt='查询' class="SearchUser" style="cursor" src="../../images/管理员页面/search.png" /><img
                    class="Clear_txtUserID" alt='清空' style="cursor" src="../../images/管理员页面/clear.gif" />
            </td>
            <th>
                账户状态
            </th>
            <td>
                <asp:DropDownList ID="drpAccountStatus" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                资金帐号
            </th>
            <td>
                <asp:TextBox ID="txtAccountNo" runat="server" Height="20px" MaxLength="10"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                    TargetControlID="txtAccountNo" FilterType="Numbers" />
            </td>
            <th>
                账户余额
            </th>
            <td>
                从：<asp:TextBox ID="txtYuEFrom" runat="server" Height="20px" MaxLength="11"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
                    TargetControlID="txtYuEFrom" FilterType="Custom,Numbers" ValidChars="." />
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                    TargetControlID="txtYuEFrom" WatermarkText="只能输入数字和'.'" WatermarkCssClass="textwarmcss" />
                到：<asp:TextBox ID="txtYuETo" runat="server" Height="20px" MaxLength="11"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server"
                    TargetControlID="txtYuETo" FilterType="Custom,Numbers" ValidChars="." />
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server"
                    TargetControlID="txtYuETo" WatermarkText="只能输入数字和'.'" WatermarkCssClass="textwarmcss" />
            </td>
        </tr>
        <tr>
            <th>
                冻结资金
            </th>
            <td>
                从：<asp:TextBox ID="txtDJJEFrom" runat="server" Height="20px" MaxLength="11"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server"
                    TargetControlID="txtDJJEFrom" FilterType="Custom,Numbers" ValidChars="." />
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server"
                    TargetControlID="txtDJJEFrom" WatermarkText="只能输入数字和'.'" WatermarkCssClass="textwarmcss" />
                到：<asp:TextBox ID="txtDJJETo" runat="server" Height="20px" MaxLength="11"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server"
                    TargetControlID="txtDJJETo" FilterType="Custom,Numbers" ValidChars="." />
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server"
                    TargetControlID="txtDJJETo" WatermarkText="只能输入数字和'.'" WatermarkCssClass="textwarmcss" />
            </td>
            <th>
                添加时间
            </th>
            <td>
                从：<asp:TextBox ID="txtAddTimeFrom" runat="server" class="easyui-datebox"></asp:TextBox>到：<asp:TextBox
                    ID="txtAddTimeTo" runat="server" class="easyui-datebox"></asp:TextBox>
            </td>
            <th>
                身份实名认证
            </th>
            <td>
                <asp:DropDownList ID="drpCardStatus" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <td colspan="2">
                <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <br />
    <asp:ListView ID="lvDate" runat="server" DataKeyNames="AddUserID" OnItemDeleting="lvDate_ItemDeleting">
        <LayoutTemplate>
            <table class="editTable" width="100%" cellspacing="1">
                <tr>
                    <th>
                        所属用户
                    </th>
                    <th>
                        资金帐号
                    </th>
                    <th>
                        账户总额
                    </th>
                    <th>
                        账户余额
                    </th>
                    <th>
                        冻结金额
                    </th>
                    <th>
                        账户状态
                    </th>
                    <th>
                        身份证认证状态
                    </th>
                    <th>
                        添加时间
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#GetUserName(Eval("AddUserID"))%>
                </td>
                <td>
                    <%#GetAccountDetail(Eval("AccountNo"))%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToInt(Eval("Account"))%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToInt(Eval("YuE"))%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToInt(Eval("DJJE"))%>
                </td>
                <td>
                    <%#Enum.GetName(typeof(ZHJBXX.statusAccount), Eval("Status"))%>
                </td>
                <td>
                    <%#Enum.GetName(typeof(ZHJBXX.statusCard), Eval("CardStatus"))%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToShortDateTime(Eval("AddTime"), "yyyy年MM月dd日")%>
                </td>
                <td>
                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="return confirm('您确定要删除该项吗?');"
                        CommandName="Delete"></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            没有数据<br />
            <br />
        </EmptyDataTemplate>
    </asp:ListView>
    <div style="padding: 4px; text-align: center;">
        <asp:DataPager ID="Pager" runat="server" PagedControlID="lvDate" OnPreRender="Pager_PreRender"
            PageSize="20">
            <Fields>
                <asp:NumericPagerField ButtonCount="10" CurrentPageLabelCssClass="CurrentPage" NumericButtonCssClass="Page" />
                <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="true"
                    ShowFirstPageButton="true" />
                <asp:TemplatePagerField>
                    <PagerTemplate>
                        共<%=Pager.TotalRowCount%>条
                    </PagerTemplate>
                </asp:TemplatePagerField>
            </Fields>
        </asp:DataPager>
    </div>
    <asp:HiddenField ID="hdlUserID" runat="server" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".SearchUser").click(function () {
                OpenPage("../Client/Manage.aspx?IsOpen=1", "<%=hdlUserID.ClientID %>", "<%=txtUserID.ClientID %>");
            })
            $(".Clear_txtUserID").click(function () {
                ClearText("<%=hdlUserID.ClientID %>", "<%=txtUserID.ClientID %>");
            })
        })
    </script>
    <script src="../../Scripts/jquery-easyui-1.3.1/jquery.easyui.min.js" type="text/javascript"></script>
    <br />
</asp:Content>
